﻿namespace MicroCloud.Database
{
    /// <summary>
    /// 数据库视图处理器接口
    /// </summary>
    public interface IViewHandler : IDataBaseHandler
    {
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="dbContextType">数据上下文类型</param>
        void Initialize(Type dbContextType);
        
        /// <summary>
        /// 获取视图名称
        /// </summary>
        /// <param name="dbContext">数据上下文</param>
        /// <returns>视图名称</returns>
        string GetViewName(IDbContext dbContext);

    }
}